import request from '@/utils/request'

// 根据角色获取菜单
export const toAssignApi = (roleId) => {
  return request.get(`/admin/acl/permission/toAssign/${roleId}`)
}

// 给角色分配权限
export const doAssignApi = (roleId, permissionId) => {
  return request.post(`/admin/acl/permission/doAssign?roleId=${roleId}&permissionId=${permissionId}`)
}
